<template>
    <div class="headerbox">
        <van-nav-bar title="充值记录" left-text="" left-arrow @click-left="goBack" />
        <van-cell-group>
            <van-cell v-for="item in list" :key="item.id" center :value="item.createtime" :title="item.content" />
        </van-cell-group>

    </div>


</template>
<script setup>
import { ref } from 'vue';

const { proxy } = getCurrentInstance()
const LoginUser = reactive(proxy.$cookies.get('LoginUser'));
const list = ref('')
const goBack = () => {
    proxy.$router.go(-1)
}
onBeforeMount(() => {
    getmember()
})
const getmember = async () => {
    let result = await Api.rechange({
        limit: 10,
        page: 1,
        busid: LoginUser.id ?? 0
    })

    if (result.code == 1) {
        list.value = result.data
        console.log(list.value)
    }
    console.log(result)
}
</script>
<style>
:deep .van-cell {
    border-bottom: 1px solid #2cb4dd;
    /* 设置分割线颜色为红色 */
}
</style>